package prueba;

import java.util.ArrayList;
import java.util.List;

public class CarBean {
	private List<Car> cars;
	
	public List<Car> getCars(){
		return cars;
	}
	
	public void setCars(List<Car> cars){
		this.cars = cars;
	}
	
	public void CarListController() {
		cars = new ArrayList<Car>();
		cars.add(new Car("myModel1", 2005, "Manufacturer1", "blue"));
		cars.add(new Car("myModel2", 2003, "Manufacturer2", "blue"));
		cars.add(new Car("myModel3", 2002, "Manufacturer3", "blue"));
		cars.add(new Car("myModel4", 2001, "Manufacturer4", "blue"));
		cars.add(new Car("myModel5", 2000, "Manufacturer5", "blue"));
		cars.add(new Car("myModel6", 2004, "Manufacturer6", "blue"));
	//	add more cars
	}
//getter setter
}